import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import {HashRouter} from "react-router-dom";
import {ThemeContext, UserContext} from "./context";
import Theme from "./Theme";

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
    <HashRouter>
        <UserContext value={{username: '张三', userid: 108}}>
            <Theme>
                <App/>
            </Theme>
        </UserContext>
    </HashRouter>
);
